require('../css/common/normalize.css')
require('../css/common/reset.css')
require('../css/common/property.css')
require('../css/common/basic.less')
require('../lib/fonts/iconfont.css')

require('../css/motion-run.less') 

//导入axios
const axios = require("axios");

//导入util
const util = require('../util/util')

//导入weui
require("weui")
const weui = require("weui.js")


 /**
* 0.底部导航
*/
  util.fixBottomNav('motion-run')

//获取元素

let position1=document.querySelector('#position1')


axios.get('http://139.9.177.51:8099/sports/exerciseData',{
    params:{
        id:localStorage.getItem('userId')
    }
}).then(function(res){
    console.log(res.data.data);
    let run=res.data.data
    position1.textContent=run.runkm

})

document.querySelector('#mapMid').addEventListener('click',function(){
    location.href='./timeDown.html'
})